package com.xzy.mapper;

import com.xzy.pojo.TopicVote;
import com.xzy.pojo.VoteUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface TopicVoteMapper {
    public List<TopicVote> selectTopicVotePage(@Param("begin")int begin, @Param("size")int size);
    public int TopicVoteYes(Map<String,Object> map);
    public int TopicVoteNo(Map<String,Object> map);
    public int TopicVoteNoKnow(Map<String,Object> map);
    public int InsertTopic(@Param("topicName") String topicName,@Param("topicAuthor")String topicAuthor);
}
